package com.kevin.learn.a.线程运行原理;

import java.util.concurrent.locks.ReentrantLock;

public class TestFrames {
    public static void main(String[] args) {
       method1(10);
    }

    private static void method1(int x) {
        ReentrantLock reentrantLock = new ReentrantLock();
        reentrantLock.lock();
        reentrantLock.unlock();
        int y = x+1;
        Object m = method2();
        System.out.println(m);
    }

    private static Object method2() {
        Object o = new Object();
        return o;
    }
}
